package metrics

import (
	"github.com/prometheus/client_golang/prometheus"
)

// Label constants.
const (
	LabelNamespace = "namespace"
	LabelName      = "name"
	LabelComponent = "component"
)

var (
	// ActiveWorkers is a prometheus metric which holds the number
	// of active workers per controller.
	ActiveWorkers = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "controller_runtime_active_workers",
		Help: "Number of currently used workers per controller",
	}, []string{"controller"})
)

func init() {
	prometheus.MustRegister(
		ActiveWorkers,

		ClusterSpecReplicas,
		ClusterUpdateErrors,
	)
}
